package various;


import lejos.nxt.LCD;
import lejos.nxt.Motor;
import lejos.nxt.comm.LCPBTResponder;

public class ProvaTriciclo {
	public static void main(String[] args) throws Exception {
		// boolean stop=false;
		for (int i = 0; i < 10; i++) {
			// RConsole.openBluetooth(1000);
			// RConsole.println("Started...");
			LCPBTResponder th = new LCPBTResponder();
			th.setDaemon(true);
			th.start();
			Motor.A.setSpeed((int) (200 * Math.sqrt(i)));
			LCD.drawString("" + Motor.A.getSpeed(), 1, 1);
			Motor.A.backward();
			Thread.sleep(1500);
			// RConsole.close();
		}

	}
}
